home *** CD-ROM | disk | FTP | other *** search
/ Aminet 41 / Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso / Aminet / text / font / ttfr.readme < prev   
Text File  |  2001-01-02  |  3KB  |  77 lines

  1. Short:    Rename true type fonts file correctly
  2. Author:   James S.Perrin <james.perrin@ntlworld.com>
  3. Uploader: James S.Perrin <james.perrin@ntlworld.com>
  4. Version:  1.1
  5. Type:     text/font
  6.  
  7. What Is It?
  8.  
  9. This program searches a True Type font for the font name given within
  10. the file and renames the file to it. Spaces are removed from the finally
  11. name.
  12.  
  13.  
  14. Why?
  15.  
  16. After downloading a few TT fonts I found they often had daft name like
  17. GIB_____.ttf presumably to keep M$DOS users happy. I saw the pfbr program
  18. on the aminet that does exactly the same for PostScript Type1 fonts and
  19. thought it should be equally straight forward, doh!
  20.  
  21.  
  22. Installation
  23.  
  24. Stick in C:
  25.  
  26.  
  27. Usage
  28.  
  29. ttfr <ttf_files>
  30.  
  31. I suggest you rename your file BEFORE you install them with ttfmanager as it
  32. uses the filenames, If you've already installed them the ony thing to do is
  33. delete the generated files (.font .otag) an reinstall.
  34.  
  35. NOTE: the binary was compiled with libnix which doesn't support wild cards,
  36. if you want to use wild cards I suggest you recompile with ixemul which you
  37. must then obviously have installed.
  38.  
  39.  
  40. Bugs
  41.  
  42. Seems to work fine for me but I've kludged the unicode reading by assuming
  43. its a western/latin coding ie only the second byte of the word is used, so
  44. it won't work if your font has a name in japanese characters. Character 
  45. encoding is not something I particularly understand (or want to), so if you
  46. can send me a patch I'll be happy to update. Also I've assumed the M$ form of
  47. TrueType which has a different way of specifying which character encoding is
  48. used from Apple (this just the encoding for strings in the file not the actual
  49. font!)
  50.  
  51.  
  52. Anecdote
  53.  
  54. Since there was no docs for ttflib (it probably has a function for getting 
  55. the font name) and I thought it would be easy as for PS Type 1 to search for
  56. the font name (hence I didn't use the freetype library) I decided to write this
  57. from scratch. Neither M$ or Apple seem to think that "truetype" is a good
  58. enough keyword to get to the actual pages containing the truetype
  59. specification. I spent as much time looking for the docs as I did reading them
  60. and writting the program.
  61.  
  62.  
  63. History
  64. v1.0 first release
  65. v1.1 v1.1 replaced dosman problem symbols <>":/ with .
  66.  
  67.  
  68. ============================= Archive contents =============================
  69.  
  70. Original  Packed Ratio    Date     Time    Name
  71. -------- ------- ----- --------- --------  -------------
  72.    26924   11135 58.6% 12-Nov-00 13:38:50 +ttfr
  73.     4184    1363 67.4% 12-Nov-00 13:38:08 +ttfr.c
  74.     2192    1157 47.2% 12-Nov-00 13:41:42 +ttfr.readme
  75. -------- ------- ----- --------- --------
  76.    33300   13655 58.9% 13-Nov-100 22:04:20   3 files
  77.